package com.hkts.beltweigher.master.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hkts.beltweigher.master.entity.YbHourAccumulate;
import com.hkts.beltweigher.master.entity.YbRunAccumulate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.beltweigher.utils.Result;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hml
 * @since 2024-04-10
 */
public interface IYbRunAccumulateService extends IService<YbRunAccumulate> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param ybRunAccumulate
     * @return
     */
    IPage<YbRunAccumulate> selectPage(Page<YbRunAccumulate> page, YbRunAccumulate ybRunAccumulate);

    Result<Object> selectList(String startTime, String endTime) throws ParseException;

    YbRunAccumulate selectYbRunAccumulate(String instrumentName);

    List<YbRunAccumulate> selectExportList(String startTime, String endTime) throws ParseException;

    List<YbRunAccumulate> selectBetweenList(Integer type);

    Map<String, YbRunAccumulate> selectYbRunAccumulateByClass(Integer type);
}